﻿using System;
using SqlSugar;
using System.Security.Principal;

namespace WomanMotion.WebApi.Model.Entitys
{
    public class BaseEmpty
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public long Createdby { get; set; }

        /// <summary>
        ///创建人对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Createdby))]
        public Users? CreatedUsers { get; set; } //不能赋值只能是null

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Createdtime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public long Updatedby { get; set; }

        /// <summary>
        /// 更新人对象
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(Updatedby))]
        public Users? UpdatedUsers { get; set; } //不能赋值只能是null

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime Updatedtime { get; set; }

        /// <summary>
        /// 是否禁用;1代表启用，0代表禁用
        /// </summary>
        public int Ifdisable { get; set; }
    }
}